package com.java.domain.event;

import com.java.domain.ActivitySlot;
/**
* @ClassName: ActivitySlot
* @Description: activity_slot Db Table To : Slot Info行为执行类
* @author admin
* @date 2024-04-16
 */
public class ActivitySlotEvent extends ActivitySlot{
	
	private int hasSelect;
	
	private String nextTime;
	
	private String fullTime;

	public ActivitySlotEvent() {
		super();
	}

	public int getHasSelect() {
		return hasSelect;
	}

	public void setHasSelect(int hasSelect) {
		this.hasSelect = hasSelect;
	}

	public String getNextTime() {
		String hStr = this.getSlotTime().substring(0, 2);
		int hNum = Integer.valueOf(hStr) + 1;
		String nextH = String.valueOf(hNum);
		if(hNum < 10) {
			nextH = "0" + hNum;
		}
		nextTime = nextH + ":00";
		return nextTime;
	}

	public String getFullTime() {
		fullTime = this.getSlotTime() + " ~ " + getNextTime();
		return fullTime;
	}
	public static void main(String[] args) {
		ActivitySlotEvent aa = new ActivitySlotEvent();
		aa.setSlotTime("11:00");
		System.out.println(aa.getFullTime());
	}
}